package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao.KMSZSPLSSJDao;
import com.capinfo.accumulation.model.accounting.mybist. KMSZSPLSSJ;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.KMSZSPLSSJServiceI;

@Service("kMSZSPLSSJService")
public class  KMSZSPLSSJServiceImpl implements  KMSZSPLSSJServiceI {
	
	@Autowired
	 KMSZSPLSSJDao  kMSZSPLSSJDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.kMSZSPLSSJDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(KMSZSPLSSJ record) {
		return this.kMSZSPLSSJDao.insertSelective(record);
	}

	@Override
	public KMSZSPLSSJ selectByPrimaryKey(String id) {
		return this.kMSZSPLSSJDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(KMSZSPLSSJ record) {
		return this.kMSZSPLSSJDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<KMSZSPLSSJ> retList = this.kMSZSPLSSJDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

}
